<script type="text/javascript">
	Ext.onReady(function(){
		var tree = new Ext.tree.TreePanel({
			useArrows: true,
			autoScroll: true,
			animate: true,
			enableDD: false,
			containerScroll: true,
			border: false,
			dataUrl: '/Bike/controllers/templates.php?type=tree',

			root: {
				nodeType: 'async',
				text: '/',
				draggable: false,
				id: '/'
			}
		});
		tree.render('templates-div');
		tree.getRootNode().expand();
	});
</script>

<div id="templates-div"></div>